<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<div align="center">
	Liste des articles
	<table border="2">
		<tr>
			<td>Enseigne</td>
			<td>Reference</td>
			<td>Description Courte</td>
			<td>Prix</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<c:forEach var="article" items="${listeArticle}">
			<tr>
				<td> 
					<c:out value="${article.enseigne.libelle}"/> 
				</td>
				<td> 
					<c:out value="${article.reference}"/> 
				</td>
				<td> 
					<c:out value="${article.description}"/>
				</td>
				<td>
					<c:out value="${article.prix}"/>
				</td>
				<td> 
					<a href="<%= request.getContextPath() %>/articleForm.do?referenceArticle=<c:out value="${article.reference}"/>"> Modifier article </a> 
				</td>
				<td>
					<a href="<%= request.getContextPath() %>/articleSupprimer.do?referenceArticle=<c:out value="${article.reference}"/>"> Supprimer article </a>
				</td>				
			</tr>
		</c:forEach>
	</table>
	<br/>
	<a href="<%= request.getContextPath() %>/articleForm.do"> Nouvel article </a>
</div>
